﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
					xmlns:Controls="clr-namespace:DanielVaughan.Calcium.Gui.Controls" 
					xmlns:Calcium="clr-namespace:DanielVaughan.Calcium" 
					xmlns:cal="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation" 
					xmlns:Gui="clr-namespace:DanielVaughan.Calcium.Gui"  
					xmlns:m="clr-namespace:Calcium.Client.FileMetadata.Resources.VistaIcons.Metadata">

	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="{x:Static m:SaveXaml.PackUri}"/>
		<ResourceDictionary Source="{x:Static m:Save_AllXaml.PackUri}"/>
	</ResourceDictionary.MergedDictionaries>
	
	<Style TargetType="{x:Type Controls:StandardToolBarTray}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Controls:StandardToolBarTray}">
					<Grid x:Name="LayoutRoot">
						<DockPanel>
							<Border x:Name="Menu_Border" Width="Auto">
								<ToolBarTray cal:RegionManager.RegionName="{x:Static Calcium:RegionNames.StandardToolBarTray}">
									<ToolBar x:Name="ToolBar_Standard">
										<Button Command="ApplicationCommands.Save" 
												ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}">
											<Image Width="15" Height="15" Source="{StaticResource DrawingImage_Save}" />

										</Button>
										<Button Command="{x:Static Gui:ShellView.SaveAll}" 
												ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}">
											<Image Width="15" Height="15" Source="{StaticResource DrawingImage_SaveAll}" />
										</Button>
									</ToolBar>
								</ToolBarTray>
							</Border>
						</DockPanel>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
</ResourceDictionary>